# Contributor: Dominika Liberda <ja@sdomi.pl>
# Maintainer: Dominika Liberda <ja@sdomi.pl>
pkgname=soundfont-timgm
pkgver=3412
pkgrel=1
pkgdesc="Tim General Midi 6MB soundfont from MuseScore"
url="https://sourceforge.net/p/mscore/code/"
arch="noarch"
license="GPL-2.0-only"
options="!check" # no code
source="TimGM6mb-$pkgver.sf2::https://sourceforge.net/p/mscore/code/$pkgver/tree/trunk/mscore/share/sound/TimGM6mb.sf2?format=raw"
builddir="$srcdir"

package() {
	install -Dm644 TimGM6mb-$pkgver.sf2 \
		"$pkgdir"/usr/share/soundfonts/TimGM6mb.sf2

	mkdir -p "$pkgdir"/usr/share/sounds
	ln -s /usr/share/soundfonts/TimGM6mb.sf2 \
		"$pkgdir"/usr/share/sounds/TimGM6mb.sf2

	# let this provide the default soundfont for now
	ln -s /usr/share/soundfonts/TimGM6mb.sf2 \
		"$pkgdir"/usr/share/soundfonts/default.sf2
}

sha512sums="
97c39173d63c904f943b3b2d1374f5125ec35f1da6ef2513140807230e20fd64e40fd51e6fa556ad6a9b725aaf4c90686b7afd394013c90d906dcb412cda13e8  TimGM6mb-3412.sf2
"
